﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ServiceApp.Entities;
using ServiceApp.Managers;

namespace ServiceApp
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "UserService" in code, svc and config file together.
    public class UserService : IUserService
    {
        public List<User> GetUsers()
        {
            return UserManager.GetADUsers();
        }

        public Employee GetEmployee(string id)
        {
            return new Employee() { Id = 1, Name = "Name" + id };
        }

        public bool SaveEmployee(Employee employee)
        {
            return true;
        }

        public int UploadFile(FileInformation fileInfo)
        {
            return fileInfo.Content.Length;
        }
    }
}
